package com.yuyou.hxyy.service.api.enums;

public class YouDaoEnums {

    public enum ErrorCode {
        Arrearage("有道接口余额不足，请联系管理员", 401),
        TooFrequent("访问频率受限,请稍后访问", 411),
        OtherErr("服务器异常，请联系管理员", 1);

        ErrorCode(String val, Integer code) {
            _val = val;
            _code = code;
        }

        private String _val;
        private int _code;

        public String getName() {
            return _val;
        }

        public Integer getId() {
            return _code;

        }
    }
}
